package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("equipment_acceptance")
@ApiModel(value = "设备验收记录")
public class EquipmentAcceptance {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("验收日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate acceptanceDate;

    @ApiModelProperty("设备名称")
    private String equipmentName;

    @ApiModelProperty("规格/型号")
    private String specificationModel;

    @ApiModelProperty("设备编号")
    private String equipmentNumber;

    @ApiModelProperty("校正周期")
    private String calibrationCycle;

    @ApiModelProperty("出产地点")
    private String productionPlace;

    @ApiModelProperty("出产日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate productionDate;

    @ApiModelProperty("电压")
    private String voltage;

    @ApiModelProperty("功率")
    private String power;

    @ApiModelProperty("外观综合判定")
    private String appearanceJudgment;

    @ApiModelProperty("设备附件带配清查结果")
    private String attachmentInventoryResult;

    @ApiModelProperty("设备功能测试结果")
    private String functionTestResult;

    @ApiModelProperty("设备性能及精确判定")
    private String performanceAccuracyJudgment;

    @ApiModelProperty("验收最终判定")
    private String finalJudgment;

    @ApiModelProperty("部长")
    private String minister;

    @ApiModelProperty("部长日期")
    private LocalDate ministerDate;

    @ApiModelProperty("部门经理")
    private String departmentManager;

    @ApiModelProperty("经理日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate managerDate;

    @ApiModelProperty("验收人")
    private String acceptancePerson;

    @ApiModelProperty("验收人日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate acceptanceDatePerson;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    @ApiModelProperty("附件列表")
    private List<EquipmentAccessories> accessoriesList;
}